package feg.soft.sealte.run;

import java.awt.GraphicsEnvironment;

public class Test {
	public static void main(String[] args){
		//getEnvironmentFonts();
		
		String floder = "D:/pansoft/web_project/WebContent/WEB-INF/lib";
		
		// method replaceAll() use regular expressions but not char 
		String floder2 = floder.replace('/', '\\');  
		System.out.println(floder2);
	}
	
	public static void getEnvironmentFonts(){
		String[] fonts = GraphicsEnvironment
						.getLocalGraphicsEnvironment()
						.getAvailableFontFamilyNames();
		for(int i=0;i<fonts.length;i++){
			System.out.println(fonts[i]);
		}
	}
}
